<?php
function mip_widgets_init() {
	register_sidebar(array(
		'name'          => __( 'Sponsors', 'mip-base' ),
		'id'         	=> 'sponsors',
		'description'   => __( 'Area to display the top sponsors. Use a Links widget and select a category to display.', 'mip-base' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' 	=> '</li>',
		'before_title' 	=> '<h2 class="widget-title">',
		'after_title' 	=> '</h2>',
	));
	
	register_sidebar( array(
		'name'		=> __( 'Post Sidebar', 'mip-base' ),
		'id' 		=> 'post-sidebar',
		'description' 	=> __( 'Located at the right side of archives, single and search.', 'mip-base' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' 	=> '</li>',
		'before_title' 	=> '<h2 class="widget-title">',
		'after_title' 	=> '</h2>',
	));
	
	register_sidebar(array(
		'name'          => 'Page Sidebar',
		'id'         	=> 'page-sidebar',
		'description'   => __( 'Located at the right side of page templates.', 'mip-base' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' 	=> '</li>',
		'before_title' 	=> '<h2 class="widget-title">',
		'after_title' 	=> '</h2>',
	));
	
	register_sidebar(array(
		'name'          => 'Page Sidebar 2',
		'id'         	=> 'page2-sidebar',
		'description'   => __( 'Located at the right side of page templates.', 'mip-base' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s"><div class="sidebox"><div class="c_bottomsidebox">
							<div class="contentbox">',
		'after_widget' 	=> '</div></div></div></li>',
		'before_title' 	=> '<h2 class="widget-title">',
		'after_title' 	=> '</h2>',
	));
	
	register_sidebar(array(
		'name'          => __( 'Before Content', 'mip-base' ),
		'id'         	=> 'before-content',
		'description'   => __( 'Located above content area.', 'mip-base' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' 	=> '</li>',
		'before_title' 	=> '<h2 class="widget-title">',
		'after_title' 	=> '</h2>',
	));
}
/** Register sidebars by running mip_widgets_init() on the widgets_init hook. */
add_action( 'widgets_init', 'mip_widgets_init' );
?>
